#!/bin/bash

# drawall.sh - script that draws all of tracks stored in LRN-files in base directory.
# It's intended to be called from root project directory: "amse-laser-mouse".
# The result will be PNG-plots located in "base/plots" directory.

#USAGE:
#./base/scripts/drawall.sh

ls -1 -B ./base | grep -E [[:alnum:]]+\.lrn > files

for i in {0..10}
do
	while read line
		do ./base/scripts/draw.sh $i base/$line "base/plots/$line-$i.png";
		echo $line $i;
	done < files
done

